package com.abc.liuyan.controller.api;

import java.util.Date;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.abc.liuyan.controller.BaseController;
import com.abc.model.ResultMap;

/**
 *
 * @author huangxin <3203317@qq.com>
 *
 */
@RestController
@RequestMapping("/api")
public class ApiBaseController extends BaseController {

	@RequestMapping(value = { "/time/get" }, method = RequestMethod.GET, produces = "application/json")
	public ResultMap<Long> timeGet() {
		ResultMap<Long> _resu = new ResultMap<Long>();
		_resu.setData(new Date().getTime());
		_resu.setSuccess(true);
		return _resu;
	}

}
